package com.example.cash.craft.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.cash.craft.pojo.entity.User;
import com.example.cash.craft.pojo.vo.UserLoginResultVO;
import com.example.cash.craft.pojo.vo.UserVO;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    int countByUsername(String username);

    UserVO selectById(Long id);

    UserLoginResultVO selectByUsername(String username);

    List<UserVO> listAll();

}